package Mangos::DB::Realmd::Uptime;

use strict;

use base qw(Mangos::DB::Realmd);

__PACKAGE__->meta->setup
(
    table   => 'uptime',

    columns => 
    [
        realmid     => { type => 'integer', not_null => 1 },
        starttime   => { type => 'bigint', not_null => 1 },
        startstring => { type => 'varchar', default => '', length => 64, not_null => 1 },
        uptime      => { type => 'bigint', default => '0', not_null => 1 },
        maxplayers  => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'realmid', 'starttime' ],
);

1;

package Mangos::DB::Realmd::Uptime::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Realmd::Uptime' }

__PACKAGE__->make_manager_methods('uptime');

1;
